﻿using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
using System;
using NetMicro.Webs.MvcBuilderExtend;

namespace NetMicro.Host
{
    /// <summary>
    /// host配置项
    /// </summary>
    public class ServiceCollectionOptions
    {
        /// <summary>
        /// MvcOptions配置项
        /// </summary>
        public Action<MvcOptions> MvcOptions { get; set; }

        /// <summary>
        /// 自定义newjson配置
        /// </summary>
        public CustomNewtonsoftJsonConfig CustomNewtonsoftJsonConfig { get; set; }


        /// <summary>
        /// httpclient添加自定义
        /// </summary>
        public Action<IServiceCollection> HttpClientService { get; set; }

        /// <summary>
        /// 是否使用jwt
        /// </summary>
        public bool UseJwt { get; set; }

        /// <summary>
        /// 是否使用服务发现
        /// </summary>
        public bool UseNacos { get; set; }

    }
}
